package com.beans;

import creator.ui.graphics.Magicanvas;
import creator.ui.graphics.bean.Bean;
import java.awt.Image;
import java.util.ArrayList;

public class ScoresBean extends Bean {

  private ArrayList<Image> scores;
  private static int scoresX;
  private static int scoresY;
  private static int scoresW;
  private static int scoresH;
  private static int scores2X;
  private static int scores3X;

  public void initBean(Magicanvas cvs) {
    this.scores =
      getGroupOfImages(
        new String[] {
          "/res/img/Num_max/0.gif",
          "/res/img/Num_max/1.gif",
          "/res/img/Num_max/2.gif",
          "/res/img/Num_max/3.gif",
          "/res/img/Num_max/4.gif",
          "/res/img/Num_max/5.gif",
          "/res/img/Num_max/6.gif",
          "/res/img/Num_max/7.gif",
          "/res/img/Num_max/8.gif",
          "/res/img/Num_max/9.gif",
        }
      );

    trackerImages(this.scores, cvs);

    scoresW = ((Image) this.scores.get(0)).getWidth(cvs);
    scoresH = ((Image) this.scores.get(0)).getHeight(cvs);
    scoresX = 172 - scoresW / 2;
    scores2X = 172 - scoresW;
    scores3X = scores2X - scoresW / 2;
    scoresY = (int) (307.0F - scoresH * 6.0F);
  }

  public ArrayList<Image> getScores() {
    return this.scores;
  }

  public static int getScoresX() {
    return scoresX;
  }

  public static void setScoresX(int scoresX) {
    scoresX = scoresX;
  }

  public static int getScoresY() {
    return scoresY;
  }

  public static void setScoresY(int scoresY) {
    scoresY = scoresY;
  }

  public static int getScoresW() {
    return scoresW;
  }

  public static void setScoresW(int scoresW) {
    scoresW = scoresW;
  }

  public static int getScoresH() {
    return scoresH;
  }

  public static void setScoresH(int scoresH) {
    scoresH = scoresH;
  }

  public static int getScores2X() {
    return scores2X;
  }

  public static void setScores2X(int scores2x) {
    scores2X = scores2x;
  }

  public static int getScores3X() {
    return scores3X;
  }

  public static void setScores3X(int scores3x) {
    scores3X = scores3x;
  }
}
